//专栏数据类型接口
export interface ColumnProps {
    id: number,
    title: string,
    avatar: string,   //图片
    description: string  //简介
}
//专栏列表测试数据
export const testData: ColumnProps[] = [
    {
        id: 1,
        title: 'test的专栏',
        description: '这个非常有意思',
        avatar: ''
    },
    {
        id: 2,
        title: 'test的专栏',
        description: '这个非常有意思',
        avatar: ''
    },
    {
        id: 3,
        title: 'test的专栏',
        description: '这个非常有意思',
        avatar: ''
    },
    {
        id: 4,
        title: 'test的专栏',
        description: '这个非常有意思',
        avatar: ''
    },
]

//文章列表
export interface PostProps {
    id:number,
    title:string,
    content:string,
    image?:string,
    createdAt:string //发布时间
    columnId: number //文章ID，因为你点开的那个文章要和你的文章ID做匹配
}

export const testProps: PostProps[] =[
    {
        id:1,
        title:'文章1',
        content:'adfsgdfhhjhgfdsfgd',
        image:'',
        createdAt:'2023-04-12',
        columnId:1
    },
    {
        id:2,
        title:'2',
        content:'adfsgdfhhjhgfdsfgd',
        image:'',
        createdAt:'2023-04-12',
        columnId:2
    },
    {
        id:3,
        title:'3',
        content:'adfsgdfhhjhgfdsfgd',
        image:'',
        createdAt:'2023-04-12',
        columnId:3
    },
    {
        id:4,
        title:'文章4',
        content:'adfsgdfhhjhgfdsfgd',
        image:'',
        createdAt:'2023-04-12',
        columnId:4
    },
]
